#ifndef _CUTTING_H_
#define _CUTTING_H_

#include <csignal>
#include <cstring>
#include <iostream>
#include <unistd.h>

#include "config.hpp"
#include "decode_h264.hpp"
#include "demuxer_rtsp.hpp"
#include "muxer_mp4.hpp"
#include "raw_save.hpp"
#include "ringbuffer.hpp"

class cutting {
private:
    std::string ip;
    ringbuffer rbuf;
    demuxer_rtsp demux;
    decode_h264 dec;
    muxer_mp4 mux;
#if RAW_VIDEO_SAVE
    raw_save raw;
#endif

public:
    cutting(std::string, std::vector<std::vector<int>> regions);
    ~cutting();
};

#endif